#ifndef __MAIN_FORM
#define __MAIN_FORM

#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>

#include "HWindow.h"
#include "ozf_Base.h"
#include "HRectButton.h"
#include "HCFGStorage.h"
#include "HSpacer.h"
#include "HExcept.h"

//---------------------------------------------------------------------------
class TMainForm : public TOziBaseForm {
  __published:
        TTimer *timer;
        HCfgStorage *cfg;
        HRectButton *btnSpeed;
        HRectButton *btnTest;
        HRectButton *btnCompas;
        HRectButton *btnTrack;
        HRectButton *btnConnect;
        HSpacer *HSpacer1;
        HExceptionDialog *HExceptionDialog1;
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall timerTimer(TObject *Sender);
        void __fastcall idFormSwitch(TObject *Sender);
        void __fastcall idOnButton(TObject *Sender,
          const PHCustomWindowBorder Border,
          const HCaptionButton_t Button);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall FormKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
        void __fastcall btnConnectClick(TObject *Sender);
  protected:
    virtual void __fastcall WndProc(Messages::TMessage &Message);

  public:
    __fastcall TMainForm(TComponent* Owner);

};
extern TMainForm *MainForm;

#endif
